doctype html
html
    head
        link(rel='stylesheet', href='/stylesheets/style.css')

    body
        script(type='text/javascript').
            function moveTest1(name) {
                document.location.href='/test_server/' + name;
            }

        div(class="Title") #{type}

        button(onclick="location.href='/'") home

        //table.table.table-striped.table-bordered.table-condensed
        table(border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse; border:1px gray solid;")
            thead
                each field in fields
                    th= field.name
            tbody
                //p company : #{rows[0].company}
                //p sale_cd : #{rows[0].sale_cd}
                each row in rows
                    //p #{Object.keys(rows)[0]}

                    tr
                        //p row #{JSON.stringify(row, null, 2)}
                        //p company : #{row.company}
                        //p sale_cd : #{row.sale_cd}
                        //p row key 1 : #{Object.keys(row)[0]}
                        //p row key 2 : #{Object.keys(row)[1]}
                        //each key in Object.keys(row)
                            //p key : #{key}

                        each value, key in row
                            //p key : #{key}
                            //p value : #{value}
                            if (key !== 'parse' && key !== '_typeCast')
                              td= value

        button(onclick="location.href='/'") home


        footer
            section
                hr
                p
                    small
                        p
                            mark Copyright &#169;2014 이재헌 All Rights Reserved
                        p
                            mark jjaeuny@gamevil.com
                hr
